package com.nineclock.auth.intergration.processor;

import com.nineclock.auth.intergration.entity.IntergrationAuthenticationEntity;
import com.nineclock.system.dto.SysUserDTO;

public interface AuthenticationProcessor {

    /**
     * 判定当前认证处理器是否能处理本地认证
     * @param entity
     * @return
     */
    public Boolean support(IntergrationAuthenticationEntity entity);


    /**
     * 执行认证操作
     * @param entity
     * @return
     */
    public SysUserDTO authenticate(IntergrationAuthenticationEntity entity);

}
